package com.zhongge.cloneable.simplecopy;

/**
 * @ClassName Student
 * @Description TODO 简单的拷贝
 * @Author zhongge
 * @Version 1.0
 */
public class Student {
    public String name;
    public int age;

    //构造方法
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    //重写toString方法
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

}
